<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" buffer="1000kb" isELIgnored="false" %>
	
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String contextPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath();
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redis Nodes</title>
<link href="<%=contextPath%>/static/css/content-base.css"
	rel="stylesheet" />
<link href="<%=contextPath%>/static/css/jquery/jquery-confirm.min.css"
	rel="stylesheet" />	 
<link href="<%=contextPath%>/static/css/bootstrap/bootstrap.css"
	rel="stylesheet" />	
</head>
<body class="gray-bg">

	<!-- <div class="wrapper wrapper-content">
		<div class="row"> -->
			<!-- <div class="wrapper wrapper-content row  col-sm-12"> -->
				<div class="wrapper wrapper-content row  col-sm-12 ibox float-e-margins">
					<div class="ibox-title ">
						<h3 align="center" style="font-weight:bold">Redis Nodes INFO</h3>
					</div>
					<div class="ibox-content">
						<table class="table table-condensed table-hover"
							style="word-break: break-all; word-wrap: break-all;">
							<tr class="info">
							    <th>版本号</th>
                                <th>应用地址</th>
                                <th>应用类型</th>
                                <th>命中率</th>
                                <th>运行时间</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
							<tbody>
							    <c:forEach items="${nodes}" var="node" varStatus="vs">
									<tr>
										<td><span style="color:#FF7F00;font-weight:bold">${node.rv}</span> </td>
										<td><span style="font-weight:bold">${node.address}</span></td>
										<td><span style="color:#9ACD32;font-weight:bold">${node.type}</span></td>
										<td><span style="color:#FF7F00;font-weight:bold">${node.mzl}</span></td>
										<td><span style="color:#FF7F00;font-weight:bold">${node.rtime}/天</span></td>
										<td><span style="color:#00CD00;font-weight:bold">${node.status}</span></td>
										<td><a href="<%=contextPath%>/redis/monitor?address=${node.address}" target="view_window" ><span style="font-weight:bold">详情</span></a></td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
					</div>
				</div>
			<!-- </div> -->
		<!-- </div>
	</div> -->
	
</body>
<script src="<%=contextPath%>/static/js/jquery/jquery-3.1.1.min.js"></script>
<script src="<%=contextPath%>/static/js/jquery/jquery-confirm.min.js"></script>
</html>
<!-- <script type="text/javascript">
$("#updatePermission").click(function(){
	$.post("/updatePermission", {}, function(result) {
		if (result == "true") {
			alert("权限更新成功！！");
		}
	});
});
</script> -->
